<%--

    Статус-бар.

--%>

<%@page contentType="text/html" pageEncoding="UTF-8" %>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>

<f:subview id="status">
    <script type="text/javascript">
        function proc_begin()
        {
            Richfaces.showModalPanel('modalWait');
        }

        function proc_end()
        {
            Richfaces.hideModalPanel('modalWait');
        }
    </script>

    <rich:modalPanel id="modalWait" autosized="true" width="350">
        <h:outputText value="Подождите, пожалуйста"/>
    </rich:modalPanel>

    <a4j:status onstart="proc_begin()" onstop="proc_end()"/>
</f:subview>
